home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
wordmisc
/
pcindx11
/
pcindx.exe
/
HELP.002
< prev
next >
Wrap
Text File
|
1991-08-20
|
12KB
|
260 lines
INDEX TYPE TWO: PHRASE INDEX
The phrase index feature of PC─INDEX will quickly create an index
listing the page number(s) of all phrases that you provide. You
can use PC─INDEX to create this list for you.
Creating a Phrase List:
One technique for creating a complete list of phrases is to start
with a list of all unique words used in a document and build
phrases from them. PC─INDEX can help you do this. By using
the Extract Single Words function and then the Spinoff Unique
Words function, you can quickly create a complete listing of all
words in your document and write them to a phrase file.
More information on spinning off unique words is available under
the File Menu section later in this manual.
For this example we will create a short list of phrases to index.
Select Edit Phrase File from the Edit menu. There are currently
no phrases listed here.
Press F3 to begin adding phrases. You should see a new window
appear. There are three entries that you can make. Level One,
Level Two, and Search String. There must be an entry for Level
One and the Search String.
The Search String is the actual phrase that PC─INDEX searches for
in your document. In order for a phrase to be included in an
index, the Search String must be entered into PC─INDEX exactly as
it appears in the document.
The Level One and Level Two entries are for headings and sub─
headings. They control how an entry will appear in an index. A
good example of headings and sub─headings is a name. For
example, the name Brian BENSON would be entered:
Level One Level Two Search String
BENSON Brian Brian BENSON
In the final index, this entry will appear like this:
BENSON, Brian 12, 13, 15
If there is more than one person with the same surname, (e.g.
Brian BENSON, Courtney BENSON, and Lisa BENSON) then the final
index would appear like this:
BENSON,
Brian 12, 13, 15
Courtney 14, 17
Lisa 19
This same technique can be used for sub─categories within
categories. For example, the following phrase entries:
Level One Level Two Search String
Monitors Color Color Monitors
Monitors Monochrome Monochrome Monitors
Would appear in the index like this:
Monitors,
Color 15─19
Monochrome 44
The Search String does not have to match the Level One and Level
Two Entries. This will give you a lot of flexibility in
controlling the appearance of a phrase index. For example, the
following phrase entries:
Level One Level Two Search String
Soft Drinks Diet Colas Diet Pepsi
Soft Drinks Colas Coca Cola
Would appear in the index like this:
Soft Drinks,
Colas 14, 17
Diet Colas 55
Notice that the Search Strings Coca Cola and Diet Pepsi are not
listed anywhere in the index, but they are the strings that must
be found in the document for the phrases to be included in the
index.
Select Edit Phrase List from the Edit List Menu and press F3 to
begin adding the following phrases to the list:
Level One Level Two Search String
Black and White monitor Black and White monitor
Build Single Word Index Build Single Word Index
Copyright Copyright
Document Format Menu Document Format Menu Edit
Edit File Edit Custom Character Set Edit Custom Character Set
Edit File Edit Discard Word File Edit Discard Word File
Edit File Edit Extracted Name File Edit Extracted Name File
Edit File Edit Extracted Word File Edit Extracted Word File
Edit Files Edit Include Word File Edit Include Word File
Edit Files Edit Phrase File Edit Phrase File
Edit Menu Edit Menus
Error Messages Error Messages
Examples Examples
Extract Words Extract Words
File Menu File Menu
Help Software Help Software
on line help on line help
Option Menu Option Menu
Quick Start Quick Start
Spinoff List Spinoff List
System Requirements System Requirements
Word Frequency Word Frequency
You do not need to enter phrases in sorted order, PC─INDEX will
sort them for you.
Add more phrases if you wish, but this should be enough phrases
to give you a good idea how this function works. Press ESCape or
F10 again.
STEP ONE: Extract Phrases
This option will extract all phrases that you provided and record
them in sorted order along with the page number that they occur
on.
First, select Text (ASCII) as the document type from the Document
menu. If the wrong document type is selected, results will be
unpredictable.
Next, select the Extract Phrases option from the FILE menu. You
should now see a new window asking you for an input filename, an
output filename, the page size, the first page number to start
indexing on, and the first page number to use.
For the input filename type 'PCI.DOC' and press enter. For the
output filename type 'PCI.SRT' and press enter. This document
was created using 60 lines per page (the standard for letter size
paper is usually 66, but to accommodate those with laser printers
we used 60 here). We will leave this setting as it is. Next
enter 4 for the Start Indexing on Page entry, (we want to skip
the first 3 pages that contain the title page, the disclaimer,
and the table of contents) and leave the First Page Number to use
setting at 1.
The completed window should look something like this:
┌───────────────────────────────────────────────────────────────┐
│ Input File Name: (Name of Document to process) │
│ pci.doc │
│ │
│ Output File Name: │
│ pci.srt │
│ │
│ Page Size Start Indexing on Page First Page Number to use │
│ 60 4 1 │
└───────────────────────────────────────────────────────────────┘
When you have finished entering the filenames and other
information, press F10 to begin processing 'PCI.DOC'.
You should now see a window which gives you the current status
and tells you how the processing of PCI.DOC is going. You will
be kept informed of how many characters, lines, words, and pages
have been processed as well as how many matches have been found.
This process should only take a few seconds for PCI.DOC.
STEP TWO: Build Phrase Index
The second and final step 'Build Phrase Index' is found under the
FILE menu. This step takes the file created by the 'Extract
Phrases' selection and builds the final index.
Select 'Build Phrase Index' from the FILE menu. You will be
asked for the input file and output file. PC─INDEX remembers the
name that you gave the file ('PCI.SRT') when you extracted the
phrases. You should leave this name as it is.
Next you will be asked what name you want to use for the output
file. This is the name that the actual index will be called.
For this example we'll call it 'PCI.NDX'.
The next entry is the Wildcard Description File Name. This entry
is only used if you are processing several files at the same
time. We won't use it here.
Next, PC─INDEX wants to know the page length (how many lines per
page) you want to use. The default setting is 66 which is the
proper setting for letter size paper. If you are using legal
size paper, the proper setting would be 88. This number does not
need to match the lines per page setting you used when you
selected 'Extract Phrases'. Many laser printers normally output
60 lines per page. If you will be printing the index on a laser
printer you will want to set this option to 60.
The next item to fill in is the page width. Here you will enter
the total number of characters that will fit on one line. The
maximum width accepted by PC─INDEX is 132 characters. The number
next to page width in reverse video is the calculated width
required for the settings you have selected.
Next, PC─INDEX asks you the number of columns you would like the
output to be in. You will be able to produce an index up to four
columns wide if your phrases are small enough. An example of a
two column phrase index is included at the end of this document.
The column width is the next entry. This entry controls the
width of each column in the index. The minimum allowable width
is calculated by PC─INDEX and is equal to the longest phrase that
you entered. The maximum is 99 characters.
The number of spaces between columns can range from 1 to 9
characters.
Next fill in the top, bottom, left, and right margins to the
settings that you wish.
The completed input window should look something like this:
┌───────────────────────────────────────────────────────────────┐
│ Input File Name: │
│ pci.srt │
│ │
│ Output File Name: │
│ pci.ndx │
│ │
│ Wildcard Description File: (Leave blank if not needed) │
│ │
│ Page Size Page Width (Columns) Number of Columns │
│ 66 80 78 2 │
│ Column Width Space Between Columns Top Margin │
│ 30 3 5 │
│ Bottom Margin Left Margin Right Margin │
│ 5 10 5 │
└───────────────────────────────────────────────────────────────┘
When you have finished entering the filenames and other
information, press F10 to begin processing 'PCI.SRT'.
You should see a status box which tells you the number of phrases
to be processed, the number of phrases actually processed, the
letter of the alphabet currently being processed, percentage
completed, and the elapsed time.
This process should only take a few seconds for this example.
When it is finished, you will be returned to the main menu and
the completed index is contained in the text file named
'PCI.NDX'. If you wish to view the file you can select View
Index from the File Menu. If you want to print the index to a
printer select Print Index from the File Menu. Since 'PCI.NDX'
is an ASCII file, you could also load it into almost any word
processor and edit it further if you wish.